//
//  BUViewController.h
//  Balance
//
//  Created by Calvin Kuo on 12-04-28.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//


/*
 Status: changed
 Last Merge Date: 05-30-2012
 Last Change Date: 
 Changes:
 1. check all and uncheck all
 
 */

#import <UIKit/UIKit.h>

@protocol BUViewControllerDelegate;


/* This VC is for the parameters button on the Balance View By Countries. Need to be removed later as now I have two separate buttons implemented on View By Time and View By Countries. Moreover, the selection of a BU does not trigger any function/filters as the requirement is not clear to me.
    I have disabled the delgate and close the popup directly on the view itself. Please see the folllwing URL to implement the delgate. For some reasons, it crashed on me.
    http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2
 */

@interface BUViewController : UITableViewController
{
@private
    BOOL checkAll;
    BOOL uncheckAll;
    BOOL initial;
}

- (IBAction)checkAll:(id)sender;
- (IBAction)unCheckAll:(id)sender;
@property (strong, nonatomic) IBOutlet UITableView *buTableView;
@property (nonatomic, retain) NSMutableArray *buNames;
@property (nonatomic, weak) id <BUViewControllerDelegate> delegate;
@property (nonatomic, retain) NSString *identifier;
@end


@protocol BUViewControllerDelegate <NSObject>

- (void)buViewController:(BUViewController *)controller status:(NSString*)statusCode;



@end
